package com.Nuyoah.demo01.service;

import com.Nuyoah.demo01.DTO.CommunityDTO;
import com.Nuyoah.demo01.DTO.CommunityPageQry;
import com.Nuyoah.demo01.DTO.CommunityQry;
import com.Nuyoah.demo01.entity.Community;

import java.util.List;

public interface CommunityService {
    public Integer createCommunity(CommunityDTO dto);
    public Integer deleteCommunity(Integer communityId);
    public Integer updateCommunity(CommunityQry qry);
    public List<Community> selectAllCommunity();
    public List<Community> selectPageCommunity(CommunityPageQry qry);

    Community selectCommunityById(Integer communityId);

    List<Community> selectCommunityByUserId(Integer userId);
}
